package pl.edu.pk.adcampaignfacebook.dto;

import pl.edu.pk.adcampaignfacebook.security.HashMd5;


/*
 *  Przykładowa klasa opisująca DTO
 */
public class PhotoData {
	
	private final byte[] data;
	
	public PhotoData(byte[] data){
		this.data = data;
	}
	public byte[] getData() {
		return data;
	}
	public int getSize(){
		return data.length;
	}
	public String getHashMD5(){
		return HashMd5.MD5(data);
	}

}
